import request from '@/utils/request'


export function orderPage(params) {
    return request({
        url: '/order/orderList/getOrder',
        method: 'get',
        params
    })
}

export function oneOrder(params) {
    return request({
        url: '/order/orderList/getOneOrder',
        method: 'get',
        params
    })
}

export function getMemberInfoByOrder(params) {
    return request({
        url: '/order/orderList/getMemberInfo',
        method: 'get',
        params
    })
}

export function updateOrder(data) {
    return request({
        url: '/order/orderList/updateOrderList',
        method: 'post',
        data
    })
}

export function deleteOrder(data) {
    return request({
        url: '/order/orderList/deleteOrderList?orderId=' + data.orderId,
        method: 'post',
        data
    })
}